package com.pzl.palette;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

/**
 * Created by zl.peng on 2016-02-24.
 */
public class FragmentB extends Fragment {
    public FragmentB() {
        super();
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View contentView = LayoutInflater.from(getActivity()).inflate(R.layout.page, container, false);
        ImageView imageView = (ImageView) contentView.findViewById(R.id.iv);
        imageView.setBackgroundResource(R.drawable.abc1);
        return contentView;
    }
}
